<#include "/macro.include"/> 
<#assign className = table.className>	 
<#assign classNameLower = className?uncap_first>
<#macro mapperEl2 value>${r"${"}${value}}</#macro>
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="common::common(title='基础数据')">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" ></meta>
</head>
<script type="text/javascript" th:src="@{/js/${namespace}/${classNameLower}_rowEdit.js}"></script>
<body>
	<div id="app">
		<el-container>
			<el-header>
				<el-button-group>
					<el-button type="primary" icon="el-icon-back" @click="goBack">返回</el-button>
					<el-button type="primary" icon="el-icon-document" @click="submitForm">保存</el-button>
				</el-button-group>
			</el-header>
			<el-main>
				<el-form :model="addData" ref="dialogForm" :rules="rules">
					<input id="id" name="id" th:value="<@mapperEl2 'id'/>" type="hidden">
					<#list table.columns as column>
					<el-form-item label="${column.columnAlias}" 
						prop="${column.columnNameLower}" 
						:label-width="dialogConfig.formLabelWidth">
						<el-input v-model="addData.${column.columnNameLower}" auto-complete="off" style="width:220px;"></el-input>
					</el-form-item>
					</#list>
				</el-form>
			</el-main>
		</el-container>
	</div>
</body>
</html>